for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import "animate.css";
import checkValidText from "./classes/ValidText/classValidText";
import sendForm from "./classes/ProcessInputForm/classProcessInputForm";
const initialize = (): void => {
const textInput = window.document.getElementById(
"bilinformasjon"
) as HTMLInputElement;
const textForm = window.document.getElementById(
"regnrform"
) as HTMLFormElement;
if (textInput && textForm) {
console.log("textForm before:", textForm);
textInput.addEventListener("input", checkValidText);
//textForm.addEventListener("submit", sendForm as any);
textForm.addEventListener("submit", (event) => {
alert("Submit!");
event.preventDefault();
});
console.log("textForm after:", textForm);
}
};
initialize();